﻿@model IPagedList<SketchTour.Models.MSHT00Models>
@using SketchTour.Paging;
@using Resources;
@{
    Layout = "~/Views/Shared/_IVSLayout.cshtml";
}
<!-- main start-->

<div id="main">
    <!-- InstanceBeginEditable name="EditRegion1" -->
    <h2>
        @Resource.MSHT00_SCR_tilIndex</h2>
    <!-- InstanceEndEditable -->
    <div id="error" class="error">
        @if (!String.IsNullOrEmpty((string)TempData[SketchTour.Common.CData.MsgContent]))
        {
            @TempData[SketchTour.Common.CData.MsgContent]
        }
    </div>
    <div id="Div1" class="success">
    </div>
    <!-- InstanceBeginEditable name="EditRegion2" -->
    <p>
    </p>
    <p>
    </p>
    @using (Ajax.BeginForm("Index", "MSHT00", new AjaxOptions { UpdateTargetId = "divList" }))
    {
       
        <table class="inputForm">
            <tbody>
                <tr>
                    <th class="th70">
                        @Resource.MSHT00_SCR_lblName
                    </th>
                    <td>
                        @Html.TextBox("Name", null, new { style = "width:130px" })
                    </td>
                    <th scope="row" class="th70">
                        @Resource.MSHT00_SCR_lblCity
                    </th>
                    <td>
                        @Html.DropDownList("CityCode", null, String.Empty, new { style = "width:133px" })
                    </td>
                </tr>
                <tr>
                    <th>
                        @Resource.MSHT00_SCR_lblTel
                    </th>
                    <td>
                        <input id="Tel" name="Tel" style="width: 130px;" class="txt100" value="" type="text">
                    </td>
                    <th scope="row">
                        @Resource.MSHT00_SCR_lblFax
                    </th>
                    <td>
                        <input id="Fax" name="Fax" style="width: 130px;" class="txt100" value="" type="text">
                    </td>
                </tr>
                <tr>
                    <th>
                        @Resource.MSHT00_SCR_lblEmail
                    </th>
                    <td>
                        <input id="Email" id="Email" style="width: 130px;" class="txt100" code="USER_Code"
                            name="USER_Code4" value="" type="text">
                    </td>
                    <th>
                        @Resource.MSHT00_SCR_lblServiceType
                    </th>
                    <td>@Html.DropDownList("ServiceTypeID", null, String.Empty, new { style = "width:133px" })
                    </td>
                </tr>
            </tbody>
        </table>
        <input type="submit" value="@Resource.Common_SCR_btnSearch" onclick="clearMessage()" />
    }
    <input name="btnAdd" type="button" value="@Resource.Common_SCR_btnAdd" onclick="location.href='/MSHT00/Add'" />
    @Html.Hidden("hdfRecordId")
    @using (Html.BeginForm("Edit", "MSHT00", FormMethod.Get))
    {
        @Html.Hidden("idEdit")  
        <input type="submit" value="@Resource.Common_SCR_btnEdit" onclick="return getValueEdit('idEdit');" />
    }
    @using (Html.BeginForm("Delete", "MSHT00"))
    {
        @Html.Hidden("idDelete")  
        <input type="submit" value="@Resource.Common_SCR_btnDelete" onclick="return getValueDelete('idDelete');" />
    }
    <div id="divList">
        @Html.Partial(SketchTour.Common.CData.ScreenID.MSHT00Partial, Model)
    </div>
    <!-- InstanceEndEditable -->
</div>
<!-- main end-->
